#ifndef LYRICPARSER_H
#define LYRICPARSER_H

#include <QObject>
#include <QMap>
#include <QString>

class LyricParser : public QObject
{
    Q_OBJECT
public:
    explicit LyricParser(QObject *parent = nullptr);
    bool loadLyricFile(const QString &filePath);
    QString getLyricByTime(qint64 time);
    void clear();

private:
    QMap<qint64, QString> lyrics;  // 时间戳-歌词映射
    qint64 parseTimeString(const QString &timeStr);
};

#endif // LYRICPARSER_H 